home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| C++ source text
| default
| |
99%
| file
| C++ source, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 6c 61 6e 67 2e 63 2b | 2b 0a 50 61 74 68 3a 20 |.lang.c+|+.Path: |
|00000020| 6e 65 77 73 2e 6e 65 72 | 2e 62 62 6e 70 6c 61 6e |news.ner|.bbnplan|
|00000030| 65 74 2e 6e 65 74 21 61 | 72 63 6f 21 75 73 65 6e |et.net!a|rco!usen|
|00000040| 65 74 0a 46 72 6f 6d 3a | 20 42 72 69 61 6e 20 4c |et.From:| Brian L|
|00000050| 65 61 63 68 20 3c 6c 61 | 73 62 66 6c 40 61 61 69 |each <la|sbfl@aai|
|00000060| 2e 61 72 63 6f 2e 63 6f | 6d 3e 0a 53 75 62 6a 65 |.arco.co|m>.Subje|
|00000070| 63 74 3a 20 52 65 3a 20 | 43 6c 61 73 73 20 76 61 |ct: Re: |Class va|
|00000080| 72 69 61 62 6c 65 73 20 | 69 6e 20 43 2b 2b 0a 58 |riables |in C++.X|
|00000090| 2d 4e 6e 74 70 2d 50 6f | 73 74 69 6e 67 2d 48 6f |-Nntp-Po|sting-Ho|
|000000a0| 73 74 3a 20 31 33 36 2e | 32 32 36 2e 31 31 36 2e |st: 136.|226.116.|
|000000b0| 31 0a 43 6f 6e 74 65 6e | 74 2d 54 79 70 65 3a 20 |1.Conten|t-Type: |
|000000c0| 74 65 78 74 2f 70 6c 61 | 69 6e 3b 20 63 68 61 72 |text/pla|in; char|
|000000d0| 73 65 74 3d 75 73 2d 61 | 73 63 69 69 0a 54 6f 3a |set=us-a|scii.To:|
|000000e0| 20 67 75 69 6e 6e 61 72 | 64 40 65 69 67 62 0a 4d | guinnar|d@eigb.M|
|000000f0| 65 73 73 61 67 65 2d 49 | 44 3a 20 3c 33 31 32 33 |essage-I|D: <3123|
|00000100| 44 34 42 46 2e 37 43 39 | 40 61 61 69 2e 61 72 63 |D4BF.7C9|@aai.arc|
|00000110| 6f 2e 63 6f 6d 3e 0a 53 | 65 6e 64 65 72 3a 20 75 |o.com>.S|ender: u|
|00000120| 73 65 6e 65 74 40 6e 65 | 77 73 2e 61 72 63 6f 2e |senet@ne|ws.arco.|
|00000130| 63 6f 6d 0a 43 6f 6e 74 | 65 6e 74 2d 54 72 61 6e |com.Cont|ent-Tran|
|00000140| 73 66 65 72 2d 45 6e 63 | 6f 64 69 6e 67 3a 20 37 |sfer-Enc|oding: 7|
|00000150| 62 69 74 0a 4f 72 67 61 | 6e 69 7a 61 74 69 6f 6e |bit.Orga|nization|
|00000160| 3a 20 41 52 43 4f 20 41 | 6c 61 73 6b 61 20 49 6e |: ARCO A|laska In|
|00000170| 63 2e 0a 52 65 66 65 72 | 65 6e 63 65 73 3a 20 3c |c..Refer|ences: <|
|00000180| 31 39 39 36 46 65 62 31 | 34 2e 31 36 35 33 31 36 |1996Feb1|4.165316|
|00000190| 40 65 69 67 62 3e 0a 4d | 69 6d 65 2d 56 65 72 73 |@eigb>.M|ime-Vers|
|000001a0| 69 6f 6e 3a 20 31 2e 30 | 0a 44 61 74 65 3a 20 46 |ion: 1.0|.Date: F|
|000001b0| 72 69 2c 20 31 36 20 46 | 65 62 20 31 39 39 36 20 |ri, 16 F|eb 1996 |
|000001c0| 30 30 3a 35 30 3a 30 37 | 20 47 4d 54 0a 58 2d 4d |00:50:07| GMT.X-M|
|000001d0| 61 69 6c 65 72 3a 20 4d | 6f 7a 69 6c 6c 61 20 32 |ailer: M|ozilla 2|
|000001e0| 2e 30 20 28 58 31 31 3b | 20 49 3b 20 48 50 2d 55 |.0 (X11;| I; HP-U|
|000001f0| 58 20 41 2e 30 39 2e 30 | 35 20 39 30 30 30 2f 37 |X A.09.0|5 9000/7|
|00000200| 35 35 29 0a 0a 67 75 69 | 6e 6e 61 72 64 40 65 69 |55)..gui|nnard@ei|
|00000210| 67 62 20 77 72 6f 74 65 | 3a 0a 3e 20 0a 3e 20 48 |gb wrote|:.> .> H|
|00000220| 69 2c 0a 3e 20 0a 3e 20 | 49 73 20 69 74 20 70 6f |i,.> .> |Is it po|
|00000230| 73 73 69 62 6c 65 20 74 | 6f 20 63 72 65 61 74 65 |ssible t|o create|
|00000240| 20 61 20 63 6c 61 73 73 | 20 76 61 72 69 61 62 6c | a class| variabl|
|00000250| 65 20 28 6f 72 20 63 6f | 6e 73 74 61 6e 74 29 20 |e (or co|nstant) |
|00000260| 69 6e 20 43 2b 2b 20 3f | 0a 3e 20 0a 3e 20 46 6f |in C++ ?|.> .> Fo|
|00000270| 72 20 65 78 61 6d 70 6c | 65 3a 0a 3e 20 0a 3e 20 |r exampl|e:.> .> |
|00000280| 63 6c 61 73 73 20 41 4e | 49 4d 41 4c 0a 3e 20 7b |class AN|IMAL.> {|
|00000290| 0a 3e 20 20 20 70 72 6f | 74 65 63 74 65 64 3a 0a |.> pro|tected:.|
|000002a0| 3e 20 20 20 20 20 3c 49 | 20 77 6f 75 6c 64 20 6c |> <I| would l|
|000002b0| 69 6b 65 20 61 20 63 6c | 61 73 73 2d 76 61 72 69 |ike a cl|ass-vari|
|000002c0| 61 62 6c 65 20 28 6f 72 | 20 63 6f 6e 73 74 61 6e |able (or| constan|
|000002d0| 74 29 2c 20 70 6c 65 61 | 73 65 3e 0a 3e 20 20 20 |t), plea|se>.> |
|000002e0| 20 20 55 49 4e 54 20 75 | 4e 75 6d 62 65 72 4f 66 | UINT u|NumberOf|
|000002f0| 4c 65 67 3d 30 3b 20 2f | 2a 20 70 75 72 65 20 3f |Leg=0; /|* pure ?|
|00000300| 21 3f 21 20 2a 2f 0a 3e | 20 0a 3e 20 20 20 70 75 |!?! */.>| .> pu|
|00000310| 62 6c 69 63 3a 0a 3e 20 | 20 20 20 20 2e 2e 2e 0a |blic:.> | ....|
|00000320| 3e 20 7d 3b 0a 3e 20 0a | 3e 20 63 6c 61 73 73 20 |> };.> .|> class |
|00000330| 43 41 54 20 3a 20 70 75 | 62 6c 69 63 20 41 4e 49 |CAT : pu|blic ANI|
|00000340| 4d 41 4c 0a 3e 20 7b 0a | 3e 20 20 20 70 72 6f 74 |MAL.> {.|> prot|
|00000350| 65 63 74 65 64 3a 0a 3e | 20 20 20 20 20 3c 49 20 |ected:.>| <I |
|00000360| 77 6f 75 6c 64 20 6c 69 | 6b 65 20 61 20 63 6c 61 |would li|ke a cla|
|00000370| 73 73 2d 76 61 72 69 61 | 62 6c 65 20 28 6f 72 20 |ss-varia|ble (or |
|00000380| 63 6f 6e 73 74 61 6e 74 | 29 2c 20 70 6c 65 61 73 |constant|), pleas|
|00000390| 65 3e 0a 3e 20 20 20 20 | 20 55 49 4e 54 20 75 4e |e>.> | UINT uN|
|000003a0| 75 6d 62 65 72 4f 66 4c | 65 67 3d 34 3b 0a 3e 20 |umberOfL|eg=4;.> |
|000003b0| 0a 3e 20 20 20 70 75 62 | 6c 69 63 3a 0a 3e 20 20 |.> pub|lic:.> |
|000003c0| 20 20 20 2e 2e 2e 0a 3e | 20 7d 3b 0a 3e 20 0a 3e | ....>| };.> .>|
|000003d0| 20 42 65 63 61 75 73 65 | 20 49 20 68 61 76 65 20 | Because| I have |
|000003e0| 6e 65 76 65 72 20 73 65 | 65 20 61 20 63 61 74 20 |never se|e a cat |
|000003f0| 77 69 74 68 20 35 20 6c | 65 67 73 2e 2e 2e 0a 3e |with 5 l|egs....>|
|00000400| 20 28 49 20 64 6f 6e 27 | 74 20 77 61 6e 74 20 74 | (I don'|t want t|
|00000410| 6f 20 72 65 73 65 72 76 | 65 20 32 20 6f 72 20 6d |o reserv|e 2 or m|
|00000420| 6f 72 65 20 62 79 74 65 | 73 20 69 6e 20 65 61 63 |ore byte|s in eac|
|00000430| 68 20 69 6e 73 74 61 6e | 63 65 20 6f 66 20 74 68 |h instan|ce of th|
|00000440| 69 73 20 63 6c 61 73 73 | 20 74 6f 0a 3e 20 73 61 |is class| to.> sa|
|00000450| 76 65 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |ve the n|umber of|
|00000460| 20 6c 65 67 20 66 6f 72 | 20 61 20 63 61 74 2e 2e | leg for| a cat..|
|00000470| 2e 29 0a 3e 20 0a 3e 20 | 49 20 68 6f 70 65 20 74 |.).> .> |I hope t|
|00000480| 68 69 73 20 69 73 20 63 | 6f 6d 70 72 65 68 65 6e |his is c|omprehen|
|00000490| 73 69 76 65 2e 2e 2e 0a | 3e 20 0a 3e 20 54 68 61 |sive....|> .> Tha|
|000004a0| 6e 6b 73 0a 3e 20 0a 3e | 20 20 20 20 20 20 20 20 |nks.> .>| |
|000004b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000004c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000004d0| 20 20 20 20 20 20 20 20 | 4c 61 75 72 65 6e 74 20 | |Laurent |
|000004e0| 47 75 69 6e 6e 61 72 64 | 0a 3e 20 20 20 20 20 20 |Guinnard|.> |
|000004f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000510| 20 20 20 20 20 20 20 20 | 20 20 67 75 69 6e 6e 61 | | guinna|
|00000520| 72 64 40 65 69 67 2e 75 | 6e 69 67 65 2e 63 68 0a |rd@eig.u|nige.ch.|
|00000530| 3e 20 0a 3e 20 62 65 5f | 77 65 6c 6c 2b 2b 3b 0a |> .> be_|well++;.|
|00000540| 0a 63 6c 61 73 73 20 41 | 6e 69 6d 61 6c 20 7b 0a |.class A|nimal {.|
|00000550| 70 75 62 6c 69 63 3a 0a | 20 20 20 73 69 7a 65 5f |public:.| size_|
|00000560| 74 20 6e 75 6d 62 65 72 | 4f 66 4c 65 67 73 28 29 |t number|OfLegs()|
|00000570| 20 63 6f 6e 73 74 20 3d | 30 3b 0a 7d 3b 0a 0a 63 | const =|0;.};..c|
|00000580| 6c 61 73 73 20 43 61 74 | 3a 20 70 75 62 6c 69 63 |lass Cat|: public|
|00000590| 20 41 6e 69 6d 61 6c 20 | 7b 0a 70 75 62 6c 69 63 | Animal |{.public|
|000005a0| 3a 0a 20 20 20 73 69 7a | 65 5f 74 20 6e 75 6d 62 |:. siz|e_t numb|
|000005b0| 65 72 4f 66 4c 65 67 73 | 28 29 20 63 6f 6e 73 74 |erOfLegs|() const|
|000005c0| 20 7b 20 72 65 74 75 72 | 6e 20 34 3b 20 7d 0a 7d | { retur|n 4; }.}|
|000005d0| 3b 0a 0a 63 6c 61 73 73 | 20 53 70 69 64 65 72 3a |;..class| Spider:|
|000005e0| 20 70 75 62 6c 69 63 20 | 41 6e 69 6d 61 6c 20 7b | public |Animal {|
|000005f0| 0a 70 75 62 6c 69 63 3a | 0a 20 20 20 73 69 7a 65 |.public:|. size|
|00000600| 5f 74 20 6e 75 6d 62 65 | 72 4f 66 4c 65 67 73 28 |_t numbe|rOfLegs(|
|00000610| 29 20 63 6f 6e 73 74 20 | 7b 20 72 65 74 75 72 6e |) const |{ return|
|00000620| 20 38 3b 20 7d 0a 7d 3b | 0a 0a 54 68 65 72 65 20 | 8; }.};|..There |
|00000630| 61 72 65 20 6f 74 68 65 | 72 20 77 61 79 73 20 74 |are othe|r ways t|
|00000640| 6f 20 64 6f 20 69 74 2c | 20 62 75 74 20 74 68 69 |o do it,| but thi|
|00000650| 73 20 69 73 20 74 68 65 | 20 6d 6f 73 74 20 73 74 |s is the| most st|
|00000660| 72 61 69 67 68 74 2d 66 | 6f 72 77 61 72 64 0a 49 |raight-f|orward.I|
|00000670| 20 63 6f 75 6c 64 20 63 | 6f 6d 65 20 75 70 20 77 | could c|ome up w|
|00000680| 69 74 68 2e 0a 0a 2d 42 | 72 69 61 6e 20 3a 2d 29 |ith...-B|rian :-)|
|00000690| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+